package com.ywb.builder;

/**
 * @Author ywb
 */
public class HouseDirector {
    private HouseBuilder houseBuilder = null;
    HouseDirector(HouseBuilder h){
        houseBuilder = h;
    }
    public void setHouseBuilder(HouseBuilder h){
        houseBuilder = h;
    }
    public House constructHouse(){
        houseBuilder.buildBasic();;
        houseBuilder.buildProof();
        houseBuilder.buildWall();
        return houseBuilder.buildHouse();
    }
}
